import request from '@/utils/request.js'
import api from './apis.js'

export function getPatrolDetail (id) {
	return request(`${api.PatroDetail}/${id}`, 'GET')
}

export function reportPatrol (id) {
	return request(`${api.ReportPatrol}/${id}`, 'POST')
}

export function endPatrol (data) {
	return request(api.EndPatrol, 'POST', data)
}

export function getAllAreaUser (id) {
	return request(`${api.AllAreaUser}/${id}`, 'GET')
}

export function putPatrol (data) {
	return request(api.DoPatrol, 'PUT', data)
}

export function getBusLog (id) {
	return request(`${api.BusLog}/${id}`, 'GET')
}
